(C++) Check for use of iterators of different containers where iterators of the same container are expected.